package com.example.test_20210601_Phone;

public interface IPhoneService {

    void getCpu();

    void getSize();

    class Cpu600 implements IPhoneService{

        @Override
        public void getCpu() {
            System.out.println("cpu600");
        }

        @Override
        public void getSize() {
            System.out.println("size600");
        }
    }

    class Cpu800 implements IPhoneService{

        @Override
        public void getCpu() {
            System.out.println("cpu800");
        }

        @Override
        public void getSize() {
            System.out.println("size800");
        }
    }
}
